package com.heima.config;
import feign.Logger;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@EnableFeignClients(basePackages = "com.heima.feigns")  // feign 接口扫描
@ComponentScan("com.heima.feigns.fallback")  // spring组件扫描  服务降级
public class HeimaFeignAutoConfiguration {
    @Bean  // 最详细的日志
    Logger.Level level(){
        return Logger.Level.FULL;
    }
}